package com.example.springboot_system.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("his_user")
public class User implements Serializable {
    @Column(name = "id")
    private String id;

    @Column(name = "email")
    private String email;

    @Column(name = "username")
    private String username;

    @Column(name = "sex")
    private String sex;

    @Column(name = "birthday")
    private String birthday;

    @Column(name = "phone")
    private String phone;

    @Column(name = "address")
    private String address;

    @Column(name = "political_status")
    private String politicalStatus;

    @Column(name = "plain_password")
    private String plainPassword;  //原始密码

    @Column(name = "password")
    private String password;  //加盐加密密码

    @Column(name = "salt")
    private String salt;  //盐

    @Column(name = "email_status")
    private Integer emailStatus;        //激活状态 0未激活 1已激活

    @Column(name = "validate_code")
    private String validateCode;        //邮箱激活验证码

 /*   private List<RoleEntity> roleList;  //用户角色

    private List<LoginInforEntity> loginInforList;  //用户登录信息

    private List<OutpatientQueueEntity> outpatientQueueList;  //门诊病人队列*/

    @Column(name = "department")
    private Integer department;  //所属科室

    /*科室类型 0急诊 1普通门诊*/
    @Column(name = "department_type")
    private Integer departmentType;

    @Column(name = "grade")
    private String grade;     //医生等级

    @Column(name = "work_address")
    private String workAddress;   //门诊的具体地址

    @Column(name = "work_status")
    private String workStatus;    //上班或请假

    @Column(name = "work_date_time")
    private Date workDateTime;  //值班时间

    @Column(name = "treatment_price")
    private String treatmentPrice;  //诊疗费，由等级决定

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "allow_num")
    private int allowNum;

    @Column(name = "now_num")
    private int nowNum;

    @Column(name = "create_datetime")
    private Date createDatetime;
}
